import mysql.connector

# 连接数据库
conn = mysql.connector.connect(
    host='47.94.130.233',
    user='root',
    passwd='123456',
    auth_plugin='mysql_native_password',
    database='training'
)
print(conn)